import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { FormsModule } from '@angular/forms';
import { ProjectTypeComponent } from './project-type.component';
import { ProjectService } from '../../services/project/project.service';
import { PipeModule } from '../../common/pipe/pipe.module';
// import { ZzjFileUploaderModule } from '@zzj/nag-file-uploader';
import { NgxFlowModule, FlowInjectionToken } from '@flowjs/ngx-flow';
import Flow from '@flowjs/flow.js';
import { FileUploaderModule } from '../../components/file-uploader/file-uploader.module';
import { AbmModule } from 'angular-baidu-maps';
import { DirectiveModule } from 'src/app/common/directive/directive.module';
@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    NgZorroAntdModule,
    PipeModule,
    NgxFlowModule,
    DirectiveModule,
    FileUploaderModule,
    AbmModule.forRoot({
      apiKey: 'p3HIQIqLqKVQOXao1IiLp5O0eTFakjEP' // app key为必选项
    }),
    RouterModule.forChild([{ path: '', component: ProjectTypeComponent }])
  ],
  declarations: [ProjectTypeComponent],
  providers: [
    ProjectService,
    {
      provide: FlowInjectionToken,
      useValue: Flow
    }
  ]
})
export class ProjectTypeModule { }
